home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
hp48_2
/
rplpsfil.c
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-31
|
552b
|
28 lines
/* Chris Spell Thu Jul 23 10:59:21 EDT 1992
Usage: rplpsfilter <rplman.ps > out
The original rplman.ps file had a bunch of nulls and garbage
before the !PS-A... that needed to be removed. This program
removes that garbage and tranlates the ^M to ^J for the Unix
world. If you don't want the ^J just take out the code
below.
*/
main()
{
int c;
while (c != '!') c=getchar();
putchar('%');
putchar(c);
while (c != -1) {
c=getchar();
if (c == '\015')
putchar('\012');
else
putchar(c);
}
}